var app = getApp()
var server = require ('../../utils/server.js')
Page({
  data: {
    motto: 'Hello WeApp',
    userInfo: {}
  },
  onButtonTap: function() {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
   console.log("run apply")
  },
  formSubmit: function(e) {
    console.log('form发生了submit事件，携带数据为：', e.detail.value)
  },
  formReset: function() {
    console.log('form发生了reset事件')
  },
  bindBeginDateChange: function(e) {
    this.setData({
      begin_date: e.detail.value
    })
  },
  bindBeginTimeChange: function(e) {
    this.setData({
      begin_time: e.detail.value
    })
  },
  bindEndDateChange: function(e) {
    this.setData({
      end_date: e.detail.value
    })
  },
  bindEndTimeChange: function(e) {
    this.setData({
      end_time: e.detail.value
    })
  }
})

